package com.scgl.order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.scgl.order.mapper.ScglWorkMapper;
import com.scgl.order.domain.ScglWork;
import com.scgl.order.service.IScglWorkService;

/**
 * 关联工单Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-30
 */
@Service
public class ScglWorkServiceImpl implements IScglWorkService 
{
    @Autowired
    private ScglWorkMapper scglWorkMapper;

    /**
     * 查询关联工单
     * 
     * @param id 关联工单主键
     * @return 关联工单
     */
    @Override
    public ScglWork selectScglWorkById(Long id)
    {
        return scglWorkMapper.selectScglWorkById(id);
    }

    /**
     * 查询关联工单列表
     * 
     * @param scglWork 关联工单
     * @return 关联工单
     */
    @Override
    public List<ScglWork> selectScglWorkList(ScglWork scglWork)
    {
        return scglWorkMapper.selectScglWorkList(scglWork);
    }

    /**
     * 新增关联工单
     * 
     * @param scglWork 关联工单
     * @return 结果
     */
    @Override
    public int insertScglWork(ScglWork scglWork)
    {
        return scglWorkMapper.insertScglWork(scglWork);
    }

    /**
     * 修改关联工单
     * 
     * @param scglWork 关联工单
     * @return 结果
     */
    @Override
    public int updateScglWork(ScglWork scglWork)
    {
        return scglWorkMapper.updateScglWork(scglWork);
    }

    /**
     * 批量删除关联工单
     * 
     * @param ids 需要删除的关联工单主键
     * @return 结果
     */
    @Override
    public int deleteScglWorkByIds(Long[] ids)
    {
        return scglWorkMapper.deleteScglWorkByIds(ids);
    }

    /**
     * 删除关联工单信息
     * 
     * @param id 关联工单主键
     * @return 结果
     */
    @Override
    public int deleteScglWorkById(Long id)
    {
        return scglWorkMapper.deleteScglWorkById(id);
    }
}
